Hello everybody.
sFunction = "Object o = current Object "
"if(canModify(obj))"
Bruwbruw - Thu Mar 22 12:31:12 EDT 2012 |
Re: Trigger for exclusive edit Here is some pretty good standard code for the top of an attribute-save trigger. Trigger trg = current; if (null trg) halt() // Error? AttrDef ad = attrdef(trg); if (null ad) halt() // Error? Object obj = object(trg); if (null obj) halt() // Error? Module mod = module(obj); if (null mod) halt() // Error? bool Dxl = ad.dxl; if (Dxl) halt() // Allow Attr DXL modifications
|
Re: Trigger for exclusive edit llandale - Thu Mar 22 12:42:59 EDT 2012 Here is some pretty good standard code for the top of an attribute-save trigger. Trigger trg = current; if (null trg) halt() // Error? AttrDef ad = attrdef(trg); if (null ad) halt() // Error? Object obj = object(trg); if (null obj) halt() // Error? Module mod = module(obj); if (null mod) halt() // Error? bool Dxl = ad.dxl; if (Dxl) halt() // Allow Attr DXL modifications
-Louie |
Re: Trigger for exclusive edit But thanks. |
Re: Trigger for exclusive edit Bruwbruw - Thu Mar 22 13:45:02 EDT 2012 You saying you want some folks to disable the trigger? I see a "disable(Trigger)" perm that looks promising. You could also perhaps create an "Import" user, and code the trigger so it doesn't fire for that particular user. ..err.. I mean it does fire, but ends gracefully without doing anything if it is. -Louie |